<%@ page contentType="text/html; charset=UTF-8" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>m_userList</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
  		<h2>${success }</h2>
		<table>
            <tr>
            	<th>ID</th>
            	<th>名称</th>
            	<th>密码</th>
            	<th>注册时间</th>
            	<th>删除</th>
            	<th>修改</th>
            </tr>
            <c:forEach items="${users}" var="user">
                <tr>
					<td> <c:out value="${user.userId}"/> </td>
                	<td> <c:out value="${user.username}"/> </td>
                	<td> <c:out value="${user.password}"/> </td>
                	<td> <c:out value="${user.registerTime}"/> </td>
					<td> <a href="m_deleteUser.html?userId=${user.userId}" onClick="{if(confirm('确定删除吗?')){return true;}return false;}"><span>删除</span></a> </td>
					<td> <a href="m_updateUser.html?userId=${user.userId}"><span>修改</span></a> </td>
                </tr>
            </c:forEach>
        </table>
		<jsp:include page="../page.jsp"/>
        <h2><a href="m_updateUser.html"><span>新增</span></a></h2>
        <h2><a href="m_index.html"><span>m_index.jsp</span></a></h2>
  </body>
</html>
